<?php
// +----------------------------------------------------------------------
// | Author: derek <693472824@qq.com> <http://www.bloveambition.com/>
// +----------------------------------------------------------------------

namespace Api\Model;
use Think\Model\ViewModel;

/**
 * 用户模型层
 * derek <693472824@qq.com>
 */
class UserViewModel extends ViewModel {

    protected $viewFields = array(
            
        'User'   =>  array(
                            'user_id', 'account', 'username', 'sex',
                            '_type'=>'LEFT'
        ),
            
        'Attachment'    =>  array(
                            'fullpath',
                            '_on'=>'User.att_id = Attachment.att_id'
                
        )
    );
}